﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using com.dz.ct.business;
namespace com.dz.ct.ui
{
    public partial class FrmMain : Form
    {
        /// <summary>
        /// 触发发送消息的事件
        /// </summary>
        public event SendMsgEventHandler SendMsg;

        /// <summary>
        /// 站点列表
        /// </summary>
        FrmSiteTree m_frm_site = new FrmSiteTree();

        FrmOutPut m_frm_out_out = null;


        /// <summary>
        /// 显示处理回送消息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DisplayMsg(object sender, SendMsgEventArgs e)
        {
            if (SendMsg != null)
            {
                SendMsg(this, e);
            }

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public FrmMain()
        {
            InitializeComponent();

            m_frm_site.SendMsg += new SendMsgEventHandler(DisplayMsg);
            m_frm_site.Show(dockMain);
            m_frm_site.DockTo(dockMain, DockStyle.Left);

            m_frm_out_out = new FrmOutPut(this);
            m_frm_out_out.Show(dockMain);
            m_frm_out_out.DockTo(dockMain, DockStyle.Fill);

        }
    }
}
